﻿using System.Collections;

namespace MyLib {
	/// <summary>
	/// 
	/// </summary>
	public interface ICacheProvider : IEnumerable {
		/// <summary>
		/// 
		/// </summary>
		/// <param name="key"></param>
		/// <returns></returns>
		object this[string key] {
			get;
		}

		/// <summary>
		/// 
		/// </summary>
		/// <param name="key"></param>
		/// <param name="value"></param>
		void Add(string key, object value);

		/// <summary>
		/// 
		/// </summary>
		/// <param name="key"></param>
		/// <param name="value"></param>
		/// <param name="dependencyFile"></param>
		void Add(string key, object value, string dependencyFile);
	} // end of ICacheProvider.
}
